<%@ page language="java" import="java.util.*,com.csd.pojo.News,com.csd.helper.Tool" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

News news = (News)request.getAttribute("newsDetail");

if(news == null)
{
	response.sendRedirect(path+"/error.jsp");
	return;
}
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>

    <title>新闻详细</title>
	<link rel="stylesheet" type="text/css" href="<%=path%>/common/css/rpms_right.css" />
  </head>
  
  <body>
   	<div class="main">
   		<h1>新闻详细</h1>
   		<hr />
   		<table width="100%">
   			<tr>
   				<td align="center"><h3><%=news.getTitle() %></h3></td>
   			</tr>
   			<tr>
   				<td align="right">
   					发布时间：<%=Tool.dateToString( news.getTime()) %>
   					发布者：<%=news.getPublisher() %>
   				</td>
   			</tr>
   			<tr>
   				<td>
   					<%=news.getContent() %>
   				</td>
   			</tr>
   			<tr>
   				<td>
   					<a href="<%=path %>/newsList.action">返回</a>
   				</td>
   			</tr>
   		</table>
   	</div>
  </body>
</html>
